import { LoginResponse } from '@/championship'
import { httpGet, httpPost } from '@/utils/http'

export const login = async (username: string, password: string) => {
  const res = await httpPost<LoginResponse>('/auth/login', { username, password })
  return res
}
